package com.fei.app.controller;

import com.fei.app.model.CellList;
import com.fei.app.service.DataImportService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * 数据处理接口
 * Created by lsd on 2017-05-09.
 */
@Controller
@RequestMapping("/processing")
public class DataProcessingController {
    @Resource
    DataImportService dataImportService;

    @ResponseBody
    @RequestMapping("cell")
    public Map<String,Object> customer(){
        Map<String,Object> result  = new HashMap<String, Object>();
        List<CellList> list = dataImportService.findAll();
        for(int i = 0; i<20;i++){
            result.put("num"+i,i);
        }
        return result;
    }
}
